package com.cabal.common.errcode;


/**
 * 产品错误码
 * @author stogel
 * @date 2019/9/12
 * @since JDK8
 */
public enum AppErrCodeEnum {
    /** 参数异常*/
    PARAM_BAD("113101", "param error"),

    /** 查询结果为空*/
    RESULT_ISNULL("113102", "result is null"),

    /** url存在*/
    URL_EXISTS("113103", "url already exists");

    /** 错误code */
    private String code;
    /** 错误描述 */
    private String value;

    /** 构造函数*/
    AppErrCodeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }
}
